package com.xln.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xln.pojo.Category;

import java.util.List;

public interface CategoryService extends IService<Category> {
    // 获取分类树结构
    List<Category> getCategoryTree();
    
    // 获取顶级分类
    List<Category> getTopCategories();
    
    // 根据父ID获取子分类
    List<Category> getChildrenByParentId(Long parentId);

    List<Long> getChildIdsTree(Long id);

    Boolean deleteCategoryAndChildAndArticles(Long id);

    Boolean deleteCategoryAndChild(Long  id);

}
